<template>
    <nav class="header-nav">
        <div class="nav-container">
            <div class="logo w-1/6">
                <img :src="websiteConfig.logo.url" :alt="websiteConfig.logo.alt" />
                <!-- <span>{{ websiteConfig.logo.name }}</span> -->
            </div>
            <div class="nav-links">
                <a v-for="item in websiteConfig.navItems" 
                   :key="item.title" 
                   :href="item.link">{{ item.title }}</a>
            </div>
        </div>
    </nav>
</template>

<script setup lang="ts">
import { websiteConfig } from '../config'
</script>

<style scoped>
.header-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #FF6B00;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    color: #000;
}

.nav-item {
    text-decoration: none;
    /* color: #333; */
    /* color: #000; */
    /* font-size: 1.1rem; */
    /* transition: color 0.9s; */

}
.nav-item a {
    text-decoration: none;
    /* color: #000; */
    /* transition: color 0.9s; */
}
.nav-item:hover {
    color: #FF6B00;
}
</style>